package cn.com.miaoto.service;

import cn.com.miaoto.base.common.BaseService;
import cn.com.miaoto.model.Role;
import cn.com.miaoto.mysql.RoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by guo.chen on 2018/11/9.
 */
@Service
public class RoleService extends BaseService<Role> {

    @Resource
    private RoleMapper roleMapper;

    public List<Role> selectRolesByUserId(String userId){
        return this.roleMapper.selectRolesByUserId(userId);
    }
}
